#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include <voice/audio.h>
#include <QTextToSpeech>//语音播放
#include <QDebug>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_pushButton_pressed();

    void on_pushButton_released();

    void on_pushButton_clear_clicked();

private:
    Ui::Widget *ui;

private:
    Audio *audio;
    QTextToSpeech my_speaker;
};

#endif // WIDGET_H
